/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package accesoDatos.negocio.entity;

import Vo.VoPrecio;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author estudiante
 */
@Entity
public class Precio implements Serializable {
 @Id
private long id;
 private double low;
 private double high;
 private double open;
 private double close;
 private double volume;

  public VoPrecio toVO(){
       VoPrecio vo = new VoPrecio();
       vo.setId(getId());
       vo.setLow(getLow());
       vo.setHigh(getHigh());
       vo.setOpen(getOpen());
       vo.setClose(getClose());
       vo.setVolume(getVolume());
       return vo;
   }
    public double getClose() {
        return close;
    }

    public void setClose(double close) {
        this.close = close;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getLow() {
        return low;
    }

    public void setLow(double low) {
        this.low = low;
    }

    public double getOpen() {
        return open;
    }

    public void setOpen(double open) {
        this.open = open;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }


}
